package org.muses.ssm.senior.mgt.demo.service;

import org.muses.ssm.senior.mgt.demo.entity.Employee;
import org.muses.ssm.senior.mgt.demo.entity.MusesResult;

import com.github.pagehelper.PageInfo;

public interface EmployeeService {
    /**
     * 根据ID获取实体
     *
     * @param id
     * @return
     */
    Employee getEmpById(Integer id);

    /**
     * 获取列表页面
     *
     * @param employee
     * @return
     */
    PageInfo<Employee> list(Employee employee);

    /**
     * 添加
     *
     * @param employee
     * @return
     */
    MusesResult add(Employee employee);

    /**
     * 添加/修改
     *
     * @param employee
     * @return
     */
    MusesResult update(Employee employee);
}
